#include "DConstants.h"

/*****************************************************************
 *
 *
 *
 *****************************************************************/
const char* DConstants::EntityType2Str( EntityType entityType )
{
	switch( entityType ) {
		case ET_BASICENTITY:
			return "ET_BASICENTITY";
		case ET_PRODUCT:
			return "ET_PRODUCT";
		case ET_LOT:
			return "ET_LOT";
		case ET_WAFER:
			return "ET_WAFER";
		case ET_WAFERLAYER:
			return "ET_WAFERLAYER";
		case ET_STEP:
			return "ET_STEP";
		case ET_DIEMATRIX:
			return "ET_DIEMATRIX";
		case ET_DIE:
			return "ET_DIE";
		case ET_DEFECT:
			return "ET_DEFECT";
		case ET_EDEFECT:
			return "ET_EDEFECT";
		case ET_SAMPLETESTPLAN:
			return "ET_SAMPLETESTPLAN";
		default:
			return "unknown";

	}
}


/*****************************************************************
 *
 *
 *
 *****************************************************************/
const char* DConstants::LayerType2Str( LayerType layerType )
{
	switch( layerType ){
		case HDT_INLINE:
			return "HDT_INLINE";
		case HDT_ETEST:
			return "HDT_ETEST";
		default:
			return "unknown";
	}
}

/*****************************************************************
 *
 *
 *
 *****************************************************************/
const char* DConstants::DirectionType2Str( DirectionType directionType )
{
	switch( directionType ){
		case HDT_UP:
			return "HDT_UP";
		case HDT_DOWN:
			return "HDT_DOWN";
		case HDT_LEFT:
			return "HDT_LEFT";
		case HDT_RIGHT:
			return "HDT_RIGHT";
		default:
			return "unknown";
	}
}
